package com.jade.zsy.finance.entity;

import com.jade.bss.db.IdEntity;
import com.jade.zsy.base.common.StatusConstant;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 应收账款
 * User: jinya
 * Date: 2017/6/3
 * Time: 14:17
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "ZSY_FIN_RECEIVABLE")
public class Receivable extends IdEntity {
    @Column(name = "type", updatable = false, nullable = false, length = 25)
    private String type; /** 业务类型 **/
    @Column(name = "recordDate", updatable = false, nullable = false, length = 100)
    private String recordDate; /** 单据日期 **/
    @Column(name = "recordNo", updatable = false, nullable = false, length = 25)
    private String recordNo; /** 单据编号 **/
    @Column(name = "partnerId", nullable = false,updatable = true,length = 100)
    private long partnerId=0;//客户对象
    @Column(name = "orgId", nullable = false,updatable = true,length = 100)
    private long orgId=0;//部门编号
    @Column(name = "employeeId", nullable = false,updatable = true,length = 100)
    private long employeeId=0;//员工编号
    @Column(name = "remark", updatable = true, nullable = true, length = 25)
    private String remark; /** 备注 **/
    @Column(name = "status", updatable = true, nullable = true, length = 25)
    private int status= StatusConstant.RECORD_INIT;
    @Column(name = "money",updatable = true,nullable = false)
    private BigDecimal money = new BigDecimal(0);/*应收账款*/

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(String recordDate) {
        this.recordDate = recordDate;
    }

    public String getRecordNo() {
        return recordNo;
    }

    public void setRecordNo(String recordNo) {
        this.recordNo = recordNo;
    }

    public long getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(long partnerId) {
        this.partnerId = partnerId;
    }

    public long getOrgId() {
        return orgId;
    }

    public void setOrgId(long orgId) {
        this.orgId = orgId;
    }

    public long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(long employeeId) {
        this.employeeId = employeeId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
